<div class="row">
<script language="javascript" type="text/javascript" src="/js/DatePicker/WdatePicker.js"></script>
<style type="text/css">
.Wdate{border:0px; }
</style>
    <div class="span3 bs-docs-sidebar ">
    <*include file="<*$controller*>/location.tpl"*>
    </div>
    
    
    <div class="span7">
        <div class="span7" style="text-align:center; margin-top:10px;padding-bottom:10px; clear:both">
             <form action="/<*$controller*>/statisticsall/groupid/<*$groupid*>" method="get" >   
                    开始日期：<input type="text" class="Wdate" id="start_date" onclick="WdatePicker()" style="width:110px"  name="start_date" class="Wdate" value="<*$start_date*>" autocomplete="off"/> 
                   ~  结束日期：<input type="text" class="Wdate" id="end_date" onclick="WdatePicker()" style="width:110px"  name="end_date" class="Wdate" value="<*$end_date*>" autocomplete="off"/>  
                   <button type="submit" style="margin-bottom:10px;" class="btn btn-primary btn-small" >查询</button>
                   <button type="button" style="margin-bottom:10px;" onclick="window.location='/<*$controller*>/exportexcel/start_date/<*$start_date*>/end_date/<*$end_date*>/groupid/<*$groupid*>'" class="btn btn-primary btn-small" >导出excel</button>
             </form>     
        </div>  

        <div class="span7"> 
            <table class="table table-bordered table-hover" style="cursor:pointer;" >
                <tr>
                	<th>学校名称</th>
                    <th>学生数</th>
                    <th>已发照片</th>
                    <!--<th>平均已发照片</th>-->
                    <th>人均照片</th>
                    <th>累计人均照片</th>
                    <!--<th>已发视频</th>
                    <th>平均已发视频</th>-->
                    <th>人均视频</th>
                    <th>累计人均视频</th>
                    <th>期间付费家长</th>
                    <th>已付费家长</th>
                    <th>未付费家长</th>
                    <th>付费率</th>
                </tr>
                <*foreach from=$school item=item key=key*>
                <tr onclick="chooseit(<*$key*>,<*$groupid*>,'<*$start_date*>','<*$end_date*>')">
                	<td><*$item.schoolname*></td>
                    <td><*$item.student*></td>
               		<td><*$item.picture*></td>
<!--                    <td><*$item.sendpicrate*></td>-->
                    <td><*$item.recpicrate*></td>
                    <td><*$item.recpicallrate*></td>
<!--                <td><*$item.video*></td>
                    <td><*$item.sendvideorate*></td>-->
                    <td><*$item.recvideorate*></td>
                    <td><*$item.recvideoallrate*></td>
                    <td><*$item.pay*></td>
                    <td><*$item.payed*></td>
                    <td><*$item.unpay*></td>
                    <td><*$item.payrate*></td>
                </tr>
                <*/foreach*>
            </table>
        </div>
        
        <div class="span6">
        <span style="color:#F00; font-size:16px; font-weight:bold">注意：</span><br />
            期间人均照片数=该园周上传图片总数/该园学生总数<br />
            期间人均视频数=该园周上传视频总数/该园学生总数<br />
            付费率=全园已付费家长数/全员学生总数<br />
            付费率提升数=本周付费率-上周付费率<br />
        </div>
	</div>
</div>
</div>

<script type="text/javascript">
function chooseit(schoolid,groupid,start,end)
{
   window.location='/<*$controller*>/statisclass/schoolid/'+schoolid+'/groupid/'+groupid+'/start_date/'+start+'/end_date/'+end;
}

</script>


